package com.naiterui.ehp.bs.patient.repository;

import java.util.List;
import java.util.Set;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bp.domain.DrFollowUpForm;

/**
 * 随访表单
 *
 * @author yangfuya
 * @since 2022/1/5
 */
@Repository
public interface IApDrFollowUpFormRepository extends BaseJpaRepository<DrFollowUpForm, Long> {

    /**
     * 分页获取随访表单列表
     *
     * @param doctorId
     * @param type
     * @param pageable
     * @return
     */
    Page<DrFollowUpForm> findByDoctorIdAndType(Long doctorId, Integer type, Pageable pageable);

    /**
     * 根据id集合获取表单
     * 
     * @param idSet
     * @return
     */
    List<DrFollowUpForm> findAllByIdIn(Set<Long> idSet);
}
